package com.sts.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * 权限实体类
 * 定义系统中的具体操作权限项（如创建、读取、更新、删除等）
 */
@Data
@Builder
@TableName("permission")
public class Permission {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("perm_name")
    private String permName;

    @TableField("perm_code")
    private String permCode;

    private String description;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
